<?php
// echo and print both are used to
// show varibale value and string
echo "Message with echo";
echo "\n\n";

print "Message with print";
echo "\n\n";
################################
// print_r() and var_export()
// both are used to print array
$arr = array(1=>'One',2=>'Two');

print_r($arr);
echo "\n\n";

var_export($arr);
echo "\n\n";
################################
// var_dump() is used to print
// variable value + datatype

$a = 'Hello';
var_dump($a);
echo "\n\n";
###############################
// printf() works same as C lang

printf("%s has %d Rs", 'Ravi',500);
echo "\n\n";




